package com.demo.order_service.controller;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.demo.order_service.service.ExcelService;
import com.demo.order_service.util.ExportExcelUtils;

/** * @author 付嘉星 
/** * ٩(*Ӧ)و写的全对
/** * 困到昏厥(✽ ﾟдﾟ ✽)  
/** * @date 创建时间：2018年4月23日 上午9:57:37 
/** * @version 1.0 */

@RestController
public class ExcelController {
	@Autowired
	 private ExcelService excelService;
	 @RequestMapping(value = "/excel", method = RequestMethod.GET)
	 public void excel(HttpServletRequest request, HttpServletResponse response) throws IOException{
		 excelService.doGet(request, response);
	 }
	 
	 
}
